package com.commerce.authority;

/**
 * @author wyj
 * @Title:权限类型
 * @Description:
 */
public enum AuthType {

    ALL("ALL"),

    MENU_SELECT("menu:sel"),

    MENU_INSERT("menu:ins"),

    MENU_UPDATE("menu:upd"),

    MENU_DELETE("menu:dal"),

    ROLE_SELECT("role:sel"),

    ROLE_INSERT("role:ins"),

    ROLE_UPDATE("role:upd"),

    ROLE_DELETE("role:dal"),

    ADMIN_SELECT("admin:sel"),

    ADMIN_INSERT("admin:ins"),

    ADMIN_UPDATE("admin:upd"),

    ADMIN_DELETE("admin:dal"),

    AD_SELECT("ad:sel"),

    AD_INSERT("ad:ins"),

    AD_UPDATE("ad:upd"),

    AD_DELETE("ad:dal"),

    CLASSIFY_SELECT("classify:sel"),

    CLASSIFY_INSERT("classify:ins"),

    CLASSIFY_UPDATE("classify:upd"),

    CLASSIFY_DELETE("classify:dal"),

    ;

    private String name;

    AuthType(String name){
        this.name = name;
    }

    public String getName(){
        return name;
    }
}
